function HandleSmry(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  this._popupBox = new PopupBox();

  this._args = (options && options.args) ? options.args : [];
  
  this._createElements();
};

HandleSmry.prototype._createElements = function() {
  this._loadData();
};

HandleSmry.prototype._loadData = function() {
  this._smry = null;
  this._retrieveSmry();
};

HandleSmry.prototype._verifyData = function() {
  if (this._smry) {
    this._updateElements();
  }
};

HandleSmry.prototype._retrieveSmry = function() {
  var _self = this;
  new RequestUtils()._mysql('smry', '&a=' + encodeURIComponent(JSON.stringify(this._args)), function(result, params) { _self._smry = result;
                                                                                                                       _self._verifyData.call(_self);
                                                                                                                     }, { php: Constant.FACTORY + '/customphp/mysqlcustom.php' });
//  new RequestUtils()._custom('smry', '&a=' + encodeURIComponent(JSON.stringify(this._args)), function(result, params) { _self._smry = result;
//                                                                                                                        _self._verifyData.call(_self);
//                                                                                                                      }, { php: Constant.FACTORY + '/customphp/jsoncustom.php' });
};

HandleSmry.prototype._updateElements = function() {
  var div, span, tmp;
  DlmanageUtils.clear(this._gui);
  
  for (var key in this._gui) {
    div = this._gui[key];
    if (!div) {
      continue;
    }
    tmp = this._smry[div.id];
    
    
    if (tmp.urgent != 0) {
      div.appendChild(document.createTextNode(' ('));
      span = document.createElement('span');
      span.style.color = '#ff0000';
      span.appendChild(document.createTextNode(tmp.urgent));
      div.appendChild(span);
      div.appendChild(document.createTextNode('/' + tmp.total + ')'));
    } else {
      div.appendChild(document.createTextNode(' (' + tmp.urgent + '/' + tmp.total + ')'));
    }
  }
};
